import Http from '../http';

// 分页查询操作日志
export const queryLimit = function(queryWhere: any) {
    return Http.post('/sysOperLog/queryLimit', queryWhere)
}

// 根据ID查询单条操作日志
export const queryOne = function(id: string) {
    return Http.get(`/sysOperLog/queryOne/${id}`)
}

// 删除操作日志
export const delOperLog = function(idList: string[]) {
    return Http.delete('/sysOperLog/dels', { idList })
}

// 新增操作日志
export const saveOperLog = function(operLogInfo: any) {
    return Http.post('/sysOperLog/save', operLogInfo)
}

// 修改操作日志
export const updateOperLog = function(operLogInfo: any) {
    return Http.put('/sysOperLog/update', operLogInfo)
}